package cn.com.code.hwjs;

import java.util.Scanner;

/**
 * 汽水瓶
 * https://www.nowcoder.com/practice/fe298c55694f4ed39e256170ff2c205f?tpId=37&tqId=21245&rp=1&ru=/exam/oj/ta&qru=/exam/oj/ta&sourceUrl=%2Fexam%2Foj%2Fta%3FtpId%3D37&difficulty=undefined&judgeStatus=undefined&tags=&title=
 *
 * @author zhengpei
 * @date 2022/5/15
 */
public class Hwjs22 {

  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    while (sc.hasNext()) {
      int i = sc.nextInt();
      if (i == 0) {
        break;
      }
      System.out.println(i / 2);
    }
  }
}
